package me.yobol.greentable.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import me.yobol.greentable.bean.OrderBean;

/**
 * @author Yobol
 *
 */
public interface IOrderDAO {

	public int save(Connection ctn, OrderBean order) throws SQLException;
	
	public OrderBean delete(Connection ctn, int orderId) throws SQLException;
	
	public void updateStatus(Connection ctn, int orderId, int status) throws SQLException;
	
	public OrderBean get(Connection ctn, int orderId) throws SQLException;
	public List<OrderBean> getByCustomerId(Connection ctn, int customerId,int status) throws SQLException;
	public List<OrderBean> getByTraderId(Connection ctn, int traderId,int status) throws SQLException;
}
